import re

url = 'https://anime.girigirilove.com/show/2--------1---/'

match = re.search(r'--------(\d+)---', url)
print(match.group(1))